/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.commands;

import org.eclipse.gef.commands.Command;

import edu.pku.sei.modeler.model.structure.MetaNode;

/**
 * @author zl
 *
 */
public class DirectEditCommand extends Command {
	private String oldText, newText;
	private MetaNode node;
	
	public void execute() {
//		oldText = node.getText();
//		helloModel.setText(newText);
	}
	
	public void setModel(Object model) {
		node = (MetaNode) model;
	}

	public void setText(String text) {
		newText = text;
	}

	public void undo() {
//		helloModel.setText(oldText);
	}
}
